import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);

const store = new Vuex.Store({
  state: {
    //登录信息
    login_id: "",
    login_password: "",
  },
  mutations: {
    //存储登录信息
    store_login_message(state, login) {
      state.login_id = login[0];
      state.login_password = login[1];
    },
    // updateToken(state){
    //   state.token = "allowed";
    // }
  },
  actions: {},
  modules: {},
  getters: {},
});
export default store;
